package cn.laixueit;

import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = MyApplication.class)
public class Demo {

   /* @Autowired
    private Person person;

    @Test
    public void t(){
        System.out.println(person);
    }

    @Autowired
    private UserMapper userMapper;
    @Test
    public void y2(){
        List<Users> all = userMapper.findAll();
        all.forEach(System.out::println);

//        Users users = userMapper.findById(5);
//        System.out.println(users);
    }*/

//    @Autowired
//    private TearcherDao tearcherDao;
//
//    @Test
//    public void t(){
////        Teacher teacher = new Teacher();
////        teacher.setId(1);
////        teacher.setName("张三");
////        tearcherDao.save(teacher);
//
//        System.out.println(tearcherDao);
//    }

//    @Autowired
//    private RedisTemplate redisTemplate;
//
//    @Test
//    public void set(){
//        redisTemplate.boundValueOps("a").set("你好");
//    }
//
//
//    @Autowired
//    private StringRedisTemplate stringRedisTemplate;
//
//    @Test
//    public void t2(){
//        stringRedisTemplate.boundValueOps("b").set("张三");
//    }



}
